package com.cmwa.solution.business.archiveManagement.entity;

import org.apache.commons.lang.StringUtils;

import com.cmwa.solution.base.entity.BaseVo;
import com.cmwa.solution.utils.cached.DictionaryCached;
import com.cmwa.solution.utils.cached.EmployeeCached;

/**
 * 档案管理
 * 
 * @author ex-chenxh
 * @date 2019-01-22 10:30:12
 */
public class ArchiveManagementVo extends BaseVo {
	    
    private String attId;
    private String attName;
    private String attPath;
    private String resourceSign;
    
    private String createDate;
    private String stat;
    private String attRelId;
    
    private String prdCode;
    private String prdsname;
    
    private String archiveTypeExtId;
    private String archiveType;
    
    private String createId;
    private String createTime;
    
	public String getAttId() {
		return attId;
	}
	public void setAttId(String attId) {
		this.attId = attId;
	}
	public String getAttName() {
		return attName;
	}
	public void setAttName(String attName) {
		this.attName = attName;
	}
	public String getAttPath() {
		return attPath;
	}
	public void setAttPath(String attPath) {
		this.attPath = attPath;
	}
	public String getResourceSign() {
		return resourceSign;
	}
	public void setResourceSign(String resourceSign) {
		this.resourceSign = resourceSign;
	}
	public String getCreateDate() {
		return createDate;
	}
	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}
	public String getStat() {
		return stat;
	}
	public void setStat(String stat) {
		this.stat = stat;
	}	
	public String getAttRelId() {
		return attRelId;
	}
	public void setAttRelId(String attRelId) {
		this.attRelId = attRelId;
	}
	public String getPrdCode() {
		return prdCode;
	}
	public void setPrdCode(String prdCode) {
		this.prdCode = prdCode;
	}
	public String getPrdsname() {
		return prdsname;
	}
	public void setPrdsname(String prdsname) {
		this.prdsname = prdsname;
	}
	public String getArchiveTypeExtId() {
		return archiveTypeExtId;
	}
	public void setArchiveTypeExtId(String archiveTypeExtId) {
		this.archiveTypeExtId = archiveTypeExtId;
	}
	public String getArchiveType() {
		return archiveType;
	}
	public void setArchiveType(String archiveType) {
		this.archiveType = archiveType;
	}
	public String getArchiveTypeName() {
		if(StringUtils.isNotBlank(archiveType)) {
			return DictionaryCached.getDictName("ARCHIVE_TYPE", archiveType);
		}
		return archiveType;
	}
	public String getResourceSignName() {
		if (StringUtils.isNotBlank(this.getResourceSign())) {
            return DictionaryCached.getInstance().getDictionaryName(
                    "ATTACH_SOURCE_SIGN",
                    "ATTACH_SOURCE_SIGN",
                    "ATTACH_SOURCE_SIGN",
                    this.getResourceSign());
        }
		return resourceSign;
	}
	public String getCreateName() {
		if (StringUtils.isNotBlank(createId)) {
			return EmployeeCached.getName(createId);
		}
		return createName;
	}
	public String getCreateId() {
		return createId;
	}
	public void setCreateId(String createId) {
		this.createId = createId;
	}
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
}
